<template>
	<view class="settle">
		<u-cell-group>
			<u-cell :isLink="true" arrow-direction="right" url="/pages/me/paid/paid?paidTitle=待付款">
				<view slot="title" style="display: flex;font-size: 32rpx;color: #333333;">
					<view class="u-cell-text">待付款</view>
					<view class="box">
						<u-badge numberType="overflow" bgColor="#F43A35" :showZero="true" :absolute="true" max="99" :value="paidInfo.fk"></u-badge>
					</view>
				</view>
			</u-cell>
			<u-cell :isLink="true" arrow-direction="right" url="/pages/me/paid/paid?paidTitle=待收款">
				<view slot="title" style="display: flex;font-size: 32rpx;color: #333333;">
					<view class="u-cell-text">待收款</view>
					<view class="box">
						<u-badge numberType="overflow" bgColor="#F43A35" :showZero="true" :absolute="true" max="99" :value="paidInfo.sk"></u-badge>
					</view>
				</view>
			</u-cell>
		</u-cell-group>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				paidInfo: {}
			}
		},
		onShow() {
			this.init()
		},
		methods: {
			init() {
				this.$http('other.getBillNum', {}, '获取中...').then(res => {
					if (res.code == 1) {
						this.paidInfo = res.data
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	page {
		background-color: #F6F7F9;
	}

	.settle {
		background-color: #fff;

		.cell-hover-class {
			opacity: 0.5;
		}
		.box {
			width: 32rpx;
			height: 32rpx;
			border-radius: 50%;
			margin-left: 10rpx;
		}
	}
</style>